package com.net.xpay.core.domain;

import com.net.common.domain.CommonDomain;
import com.net.xpay.core.enums.TaokeDetectionBatchStatus;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 2020/6/6 10:17

 * 淘客检测批次
 */
@Getter
@Setter
@NoArgsConstructor
public class TaokeDetectionBatch extends CommonDomain {
    @ApiModelProperty(notes = "商户编号")
    private Long userId;

    @ApiModelProperty(notes = "淘客检测单价 分")
    private Long taokeUnitPrice;

    @ApiModelProperty(notes = "预计需要扣除的服务费 分")
    private Long taokePrice;

    @ApiModelProperty(notes = "批次状态")
    private TaokeDetectionBatchStatus status;

    @ApiModelProperty(notes = "批次号 user.id + '-' + id")
    private String batchNo;

    @ApiModelProperty(notes = "外部批次号")
    private String outBatchNo;

    @ApiModelProperty(notes = "总笔数")
    private Integer totalCount;

    @ApiModelProperty(notes = "成功笔数")
    private Long successCount;

    @ApiModelProperty(notes = "失败笔数")
    private Long failCount;

    public static TaokeDetectionBatch getInstance() {
        return new TaokeDetectionBatch();
    }
}
